package utils
{
	public class MathTools
	{
		public static function randRange(min:Number, max:Number):Number
		{
			var randomNum:Number = (Math.random() * (max - min )) + min;
			return randomNum;
		}
		
		public static function getSpeedByVector(n:Number,angle:Number):Array
		{
			
			var speedX:Number = n * Math.cos(angle);
			var speedY:Number = n * Math.sin(angle);
			return [speedX,speedY];
		}
	}
}